package com.openbravo.pos.inventory;

import java.util.Properties;

import com.openbravo.bean.erp.OperationCustomer;
import com.openbravo.data.basic.BasicException;
import com.openbravo.data.user.DirtyManager;
import com.openbravo.pos.base.AppLocal;
import com.openbravo.pos.panels.AbstractRefCustomerEditor;
import cn.ekuma.epos.datalogic.I_DataLogicCustomers;
import cn.ekuma.epos.datalogic.I_DataLogicSales;

public class OperationCustomerEditor extends AbstractRefCustomerEditor<OperationCustomer> {

	public OperationCustomerEditor(I_DataLogicSales app,
			I_DataLogicCustomers dlCustomers, DirtyManager dirty) {
		super(app, dlCustomers, dirty);
		
	}
    
	@Override
	public String getTabName() {
		return AppLocal.getIntString("label.operationCustomer");
	}

	@Override
	public OperationCustomer createNew(Properties prop) {
		OperationCustomer obj=new OperationCustomer();
		obj.setCategoryId(parentNode.getParentKey().getKey());
		return obj;
	}

	@Override
	public void rebuild(OperationCustomer obj) throws BasicException {

	}

	@Override
	public Class getEditClass() {
		return OperationCustomer.class;
	}

}
